<div class="modal-content" id="multiple-toastr-model">
	<style>
		#multiple-toastr-model .toastr-success-i{
			display: block;
			height: 16px;
			width: 16px;
			background: no-repeat;
			background-size: contain;
			background-image: url('/static/global/img/toastr-success-i.png');
			margin: 0 auto;
		}
		#multiple-toastr-model .toastr-error-i{
			display: block;
			height: 16px;
			width: 16px;
			background: no-repeat;
			background-size: contain;
			background-image: url('/static/global/img/toastr-error-i.png');
			margin: 0 auto;
		}
	</style>
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title">结果提示</h4>
    </div>
    <div class="modal-body">
        <table id="table" style="width: 100%;height: 100%;"></table>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn blue save">确认</button>
        <button type="button" class="btn default" data-dismiss="modal">取消</button>
    </div>
</div>
<div>
    <script>
        $(function () {
            var dialog = dialogs[0];
            var params = dialog.params;
            var modalId = dialogs[0].attr("id");
            dialog.success = function () {
                var formDataChoice = {
                    init: function () {
                        this.createTable();
                        $("#" + modalId + " .save").click(function () {
                            dialog.callBack();
                            dialog.modal('destroy');
                        });
                    },
                    createTable: function () {
                        $("#" + modalId + " #table").datagrid({
							fit: true,
                            data: params,
                            height: '100%',
                            width: '100%',
                            columns: [
                                [
                                    {
                                        "field": "success", title: "结果", width: 50, fixed: true, algin: 'center', sortable: false,
                                        formatter: function(data){
											var cla = data ? "toastr-success-i" : "toastr-error-i";
											return '<i class="' + cla + '"></i>'
										}
                                    },
                                    {
                                        "field": "msg", title: "提示内容", width: 200, sortable: false,
                                        formatter: App.publicBubble
                                    },
                                    {
                                        "field": "remark", title: "备注", width: 100, sortable: false,
                                        formatter: App.publicBubble
                                    }
                                ]
                            ],
                            fitColumns: true,//自适应
                            remoteFilter: true,
                            remoteSort: true,
                            clientPaging: false,
                            singleSelect: true,//单选
                            striped: true, //表格设置为条纹
                            emptyMsg: "表中数据为空",
                            pagination: false,//分页
                            pagePosition: "bottom",
                            pageList: [20, 50, 100],
                            pageSize: 20,
                        });
                    },
                };
                formDataChoice.init();
            }
        });
    </script>
</div>
